<?
include"sambung.php";
$data=mysql_query("select * from data_karyawan where status='0'");
$aktif=mysql_num_rows($data);
$data2=mysql_query("select * from data_karyawan where status='1'");
$cuti=mysql_num_rows($data2);
$data3=mysql_query("select * from data_cuti where status='0'");
$proses=mysql_num_rows($data3);
$total=$aktif + $cuti;
?>
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us">
<TITLE>Website Cuti Online</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<style>
<!--
body         { font-family: arial; color: #000080 }
-->
</style>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 background="images/bg.gif">
<center><br>
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
        <TR>
                <TD>
                        <IMG SRC="images/tkm_01.gif" WIDTH=800 HEIGHT=158 ALT=""></TD>
        </TR>
        <TR>
                <TD>
                        <table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/tkm_02.gif" id="table1">
                                <tr>
                                        <td width="12">&nbsp;</td>
                                        <td width="430" valign="top">
                                        <table border="1" width="97%" cellspacing="1" id="table4">
                                                <tr>
                                                        <td bgcolor="#80A6D2">
                                                        <p align="center">DATA KARYAWAN</td>
                                                </tr>
                                                <tr>
                                                        <td>
                                                        <table border="0" width="100%" cellspacing="3" cellpadding="2" id="table5">
                                                                <tr>
                                                                        <td width="281" bgcolor="#FFCC99">Keterangan</td>
                                                                        <td bgcolor="#FFCC99">
                                                                        <p align="center">Jumlah</td>
                                                                </tr>
                                                                <tr>
                                                                        <td width="281" bgcolor="#B3CAE3">Jumlah
                                                                        Karyawan Aktif</td>
                                                                        <td bgcolor="#B3CAE3" align="right">
                                                                        <p style="margin-right: 40px"><?echo$aktif?></td>
                                                                </tr>
                                                                <tr>
                                                                        <td width="281" bgcolor="#B3CAE3">Jumlah
                                                                        Karyawan Cuti</td>
                                                                        <td bgcolor="#B3CAE3" align="right">
                                                                        <p style="margin-right: 40px"><?echo$cuti?></td>
                                                                </tr>
                                                                <tr>
                                                                        <td width="281" bgcolor="#B3CAE3">Jumlah
                                                                        Karyawan Mengajukan Cuti</td>
                                                                        <td bgcolor="#B3CAE3" align="right">
                                                                        <p style="margin-right: 40px"><?echo$proses?></td>
                                                                </tr>
                                                                <tr>
                                                                        <td width="281" bgcolor="#B3CAE3">Jumlah
                                                                        Total Karyawan</td>
                                                                        <td bgcolor="#B3CAE3" align="right">
                                                                        <p style="margin-right: 40px"><b><?echo$total?></b></td>
                                                                </tr>
                                                        </table>
                                                        </td>
                                                </tr>
                                        </table>
                                        </td>
                                        <td valign="top">
                                        <table border="1" width="308" id="table2" cellspacing="1">
                                                <tr>
                                                        <td bgcolor="#80A6D2">
                                                        <p align="center">LOGIN UNTUK KARYAWAN</td>
                                                </tr>
                                                <tr>
                                                        <td bgcolor="#FFCC99">
                                                        <table border="0" width="100%" cellpadding="2" id="table3">
                                                                <form method="POST" action="karyawan.php">
                                                                        <tr>
                                                                                <td width="116" align="right">
                                                                                <p style="margin-right: 10px; margin-top: 15px">
                                                                                NIK</td>
                                                                                <td>
                                                                                <p style="margin-top: 15px">
                                                                                <input type="text" name="nik" size="15" style="color: #000080; font-family: Arial; font-size: 12pt"></td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td width="116" align="right">
                                                                                <p style="margin-right: 10px">Password</td>
                                                                                <td>
                                                                                <input type="password" name="password" size="15" style="color: #000080; font-family: Arial; font-size: 12pt"></td>
                                                                        </tr>
                                                                        <tr>
                                                                                <td width="116">
                                                                                <p style="margin-bottom: 15px">&nbsp;</td>
                                                                                <td>
                                                                                <p style="margin-bottom: 15px">
                                                                                <input type="submit" value=" L O G I N " name="login" style="font-family: arial; color: #000080; font-weight: bold"></td>
                                                                        </tr>
                                                                </form>
                                                        </table>
                                                        </td>
                                                </tr>
                                        </table>
                                        </td>
                                        <td width="15">&nbsp;</td>
                                </tr>
                        </table>
                </TD>
        </TR>
        <TR>
                <TD>
                        <IMG SRC="images/tkm_05.gif" WIDTH=800 HEIGHT=45 ALT=""></TD>
        </TR>
</TABLE>
</BODY>
</HTML>